package com.hall.items.ctrl.vo;

import com.hall.items.aggr.MyEquipType;
import com.hall.items.aggr.MyWeapon;
import com.hall.items.aggr.MyWeaponLevel;

import dml.game.weapon.aggr.EquipedWeapon;

public class MyWeaponPackItemVO {

	private String id;

	private String weaponCode;

	private String equipType;

	private int level;

	public MyWeaponPackItemVO() {
	}

	public MyWeaponPackItemVO(EquipedWeapon<MyEquipType, MyWeapon> item,
			MyWeaponLevel myWeaponLevel) {
		id = item.getWeapon().getId() + "";
		weaponCode = item.getWeapon().getCode();
		equipType = item.getWeaponEquipType().getCode();
		level = myWeaponLevel == null ? 0 : myWeaponLevel.getLevel();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getWeaponCode() {
		return weaponCode;
	}

	public void setWeaponCode(String weaponCode) {
		this.weaponCode = weaponCode;
	}

	public String getEquipType() {
		return equipType;
	}

	public void setEquipType(String equipType) {
		this.equipType = equipType;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}
